using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SmartLink.Domain.Entity;

namespace SmartLink.IRepository
{
    public interface IPER_UserToRoleRepo : IRepository<PER_UserToRole>
    {
        void AllotRolesToUser(int userId, IList<int> roleIds);
        bool AllotMenuIdToRole(IList<int> roleIds, IList<int> menuIds);
        bool DeleteByUserId(int userId, DbTransaction tran = null);
        IList<PER_UserToRole> GetRoleUsers(int roleId);

        IEnumerable<int> GetUserRoleIds(int userId);
        IEnumerable<PER_RoleGroup> GetUserRoles(int userId);
    }
}
